package net.lab1024.sa.base.module.support.rule.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.base.module.support.rule.domain.entity.CepEntity;
import net.lab1024.sa.base.module.support.rule.domain.form.CepQueryForm;
import net.lab1024.sa.base.module.support.rule.domain.vo.CepVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 规则主表 Dao
 *
 * @Author chenyuqiang
 * @Date 2025-08-21 22:46:37
 * @Copyright 1
 */

@Mapper
public interface CepDao extends BaseMapper<CepEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<CepVO> queryPage(Page page, @Param("queryForm") CepQueryForm queryForm);

    public int insertCep(CepEntity cepEntity);

    public CepEntity detailByCode(@Param("code") String code);

}
